
	scope.chatController = function(){
		shutAllPages(scope);
		scope.mainChatShow=true;
		if( scope.user == null ){
			http.post("GetUserInfo.action").success(function(response) {
				scope.user = response;
				document.getElementById("chat").src = "http://localhost:3000?userName=" + scope.user.userName + "【" + PermissionName +"】";
			});
		}else{
			document.getElementById("chat").src = "http://localhost:3000?userName=" + scope.user.userName + "【" + PermissionName +"】";
		};
	
	}
	